package cn.honqun.tinycms.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "app.file-object")
@Data
public class FileObjectProperties {
    public static final String STORAGE_LOCAL = "LOCAL";
    public static final String STORAGE_OSS = "OSS";
    /**
     * 访问文件的域名，如：http://cdn.xxx.com
     */
    private String host;
    /**
     * 本地保存文件的目录
     */
    private String local;

    /**
     * 存储类型
     */
    private String storage;

    //OSS相关配置
    private String endpoint;
    private String bucketName;
    private String accessKeyId;
    private String secretAccessKey;
}
